import {Dialog} from "vant";
import router from "../../../router";

const showDialog = function (typeName,levelName) {
  return Dialog.confirm({
    title: `升级企业等级解锁${typeName}`,
    message: `将企业升级到${levelName}等级可解锁该${typeName}`,
  })
    .then(() => {
      router.push({name: 'package-list'})
    })
    .catch(() => {
      console.log('被取消了')
    });
};
export default {
  showDialog
}
